package cn.raven.feign;

import cn.raven.entity.Store;
import cn.raven.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "store-server",fallbackFactory = StoreFallback.class)
public interface StoreFeignClient {

    @PostMapping("/add")
    AjaxResult add(@RequestBody Store store);
}
